<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

            <!-- css -->
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.min.css" media="screen, projection" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-responsive.min.css" media="screen, projection" />

            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.min.js"></script>
            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.min.js"></script>
            <script type="text/javascript">
                $.noConflict();
                // Code that uses other library's $ can follow here.
            </script>
            <!--[if lt IE 9]>
            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/html5.js"></script>
            <![endif]-->
            <title><?php echo CHtml::encode($this->pageTitle); ?></title>
            <style type="text/css">
                body {
                    padding-top: 60px;
                    padding-bottom: 40px;
                }
            </style>

            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/d3.js"></script>
            <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/d3.layout.js"></script>
            <style type="text/css">

                .chart {
                    display: block;
                    margin: auto;
                    margin-top: 40px;
                }

                text {
                    font-size: 11px;
                }

                rect {
                    fill: none;
                }

            </style>
    </head>

    <body>
        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="brand" href="#"><?php echo CHtml::encode($this->pageTitle); ?></a>
                    <div class="nav-collapse collapse">
                        <?php
                        $this->widget('bootstrap.widgets.TbNavbar', array(
                            'type' => 'inverse', // null or 'inverse'
                            'brand' => 'User happiness indicator',
                            'brandUrl' => '#',
                            'collapse' => true, // requires bootstrap-responsive.css
                            'items' => array(
                                array(
                                    'class' => 'bootstrap.widgets.TbMenu',
                                    'items' => array(
                                        array('label' => 'Home', 'url' => array('index/index'), 'active' => true),
                                        array('label' => 'Not Provided', 'url' => array('index/not-provided')),
                                    ),
                                ),
                                )));
                        ?>

                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>
        <div class="container">
            <div class="row">

                <?php echo $content; ?>
            </div>
            <div class="clear"></div>
            <hr>

                <footer>
                    <p class="copyright"><?php echo CHtml::encode($this->pageTitle); ?> © 2013</p>
                </footer>
        </div> <!-- /container -->
        <!--footer-->
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/raphael.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/g.raphael.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/g.bar.js"></script>
    </body>
</html>

